package com.JavaTest7;

public class Book {
    private int b_ID;
    private String b_Name, b_Author, publish_Date;
    private static int id = 10000;

    {
        id ++ ;
    }

    Book(){}

    Book(String n, String a, String dt){
        super();
        this.b_ID = id;
        this.b_Name = n;
        this.b_Author = a;
        this.publish_Date = dt;
    }

    @Override
    public String toString() {
        return "Book{" +
                "b_ID=" + b_ID +
                ", b_Name='" + b_Name + '\'' +
                ", b_Author='" + b_Author + '\'' +
                ", publish_Date='" + publish_Date + '\'' +
                '}';
    }

    public int getB_ID() {
        return b_ID;
    }

    public void setB_ID(int b_ID) {
        this.b_ID = b_ID;
    }

    public String getB_Name() {
        return b_Name;
    }

    public void setB_Name(String b_Name) {
        this.b_Name = b_Name;
    }

    public String getB_Author() {
        return b_Author;
    }

    public void setB_Author(String b_Author) {
        this.b_Author = b_Author;
    }

    public String getPublish_Date() {
        return publish_Date;
    }

    public void setPublish_Date(String publish_Date) {
        this.publish_Date = publish_Date;
    }

    public static int getId() {
        return id;
    }

}
